package com.room.core.util;

public class NumberUtil {

    /**
     * 获取序号
     * @param number 3
     * @return 003
     */
    public static String getSerialNumber(Integer number){
        String current = String.valueOf(number);
        for (int i = 0; current.length() < 3; i++) {
            current = "0" + current;
        }
        return current;
    }
}
